package com.bgrconsulting.stockorderentry.service.dao;

import java.util.HashMap;
import java.util.Map;

import com.bgrconsulting.stockorderentry.service.converter.response.PlaceChangeEquityOrderResponseConverter;
import com.bgrconsulting.stockorderentry.service.model.response.PlaceChangeEquityOrderResponse;

public enum PlaceChangeEquityOrderResponseDao {
	instance;
	
	    
		private Map<String, PlaceChangeEquityOrderResponseConverter> contentProvider = new HashMap<String, PlaceChangeEquityOrderResponseConverter>();
		
		private PlaceChangeEquityOrderResponseDao() {
			
		}
		
		private PlaceChangeEquityOrderResponseDao(PlaceChangeEquityOrderResponse previewEquityOrderResponse) {
			
			PlaceChangeEquityOrderResponseConverter previewEquityOrderResponseConverter = new PlaceChangeEquityOrderResponseConverter(previewEquityOrderResponse);
		
			contentProvider.put(previewEquityOrderResponse.getEquityOrderResponse().getAccountId(), previewEquityOrderResponseConverter);
			
		}
		
		public Map<String, PlaceChangeEquityOrderResponseConverter> getModel(){
			return contentProvider;
		}


}
